package com.taobao.api.request;

import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.OmniorderDddeliveryStatusAllGetResponse;

/**
 * TOP API: taobao.omniorder.dddelivery.status.all.get request
 * 
 * @author top auto create
 * @since 1.0, 2019.03.25
 */
public class OmniorderDddeliveryStatusAllGetRequest extends BaseTaobaoRequest<OmniorderDddeliveryStatusAllGetResponse> {
	
	

	/** 
	* 点点送运单id
	 */
	private Long deliveryOrderNo;

	/** 
	* 交易id（交易id与点点送运单id两个二选一，如果都写，需要运单同时满足两者）
	 */
	private Long tradeId;

	public void setDeliveryOrderNo(Long deliveryOrderNo) {
		this.deliveryOrderNo = deliveryOrderNo;
	}

	public Long getDeliveryOrderNo() {
		return this.deliveryOrderNo;
	}

	public void setTradeId(Long tradeId) {
		this.tradeId = tradeId;
	}

	public Long getTradeId() {
		return this.tradeId;
	}

	public String getApiMethodName() {
		return "taobao.omniorder.dddelivery.status.all.get";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("delivery_order_no", this.deliveryOrderNo);
		txtParams.put("trade_id", this.tradeId);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<OmniorderDddeliveryStatusAllGetResponse> getResponseClass() {
		return OmniorderDddeliveryStatusAllGetResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	

}